package top.milkbox.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;
import top.milkbox.domain.base.PostCommentBase;

/**
 * 
 * @TableName tb_post_comment
 */
@TableName(value ="tb_post_comment")
@Data
public class PostComment extends PostCommentBase implements Serializable {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 外键，post表id
     */
    private Integer postId;

    /**
     * 外键，user表id，级发布这一条数据的用户id
     */
    private Integer userId;

    /**
     * 评论内容
     */
    private String content;

    /**
     * 创建时间
     */
    private String time;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}